import { axios } from '@/utils/request'

const api = {
  harSymptomData: '/system/data'
}
export function getHarSymptomDataInfo (id) {
  return axios({
    url: api.harSymptomData + '/get/'+id,
    method: 'get'
  })
}
export function getHarSymptomDataList (parameter) {
  return axios({
    url: api.harSymptomData + '/list',
    method: 'get',
    params: parameter
  })
}

export function saveHarSymptomData (parameter) {
  return axios({
    url: api.harSymptomData+(parameter.id > 0 ? '/update' : '/save'),
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function delHarSymptomData (parameter) {
  return axios({
    url: api.harSymptomData + '/remove',
    method: 'post',
    params: parameter
  })
}

export const harSymptomDataExport = api.harSymptomData + '/export'
